package com.common;

import java.io.Serializable;
import java.util.Date;

import com.rover.entity.system.Resource;
import com.rover.entity.system.User;

//用户session信息
public class SessionInfo implements Serializable{

    private static final long serialVersionUID = -5891346223278285869L;

    private User user;
    private String clientIp;
    private Date loginTime;
    //是否是管理员
    private Boolean isAdmin;
    
    private Resource resource;

    private String usereditbydefault;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Resource getResource() {
		return resource;
	}

	public void setResource(Resource resource) {
		this.resource = resource;
	}

	public String getUsereditbydefault() {
		return usereditbydefault;
	}

	public void setUsereditbydefault(String usereditbydefault) {
		this.usereditbydefault = usereditbydefault;
	}

	public void setIsAdmin(Boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Boolean getIsAdmin() {
		return isAdmin;
	}

    
}
